package org.itboys.mobile.entity.mysql;




import org.itboys.mysql.entity.BaseMySqlEntity;

import java.math.BigDecimal;

/**
 * 作者：jiangxiong
 * 日期：2017年10月26日
 * 联系方式 ：empty90911@126.com
 * 天街_金融_团队_拨付记录_实体
 */
public class TianJieGroupRecord extends BaseMySqlEntity {

    private Long groupId;//团队ID
    private Long memberId;//被拨付人ID
    private String memberName;//被拨付人名称
    private BigDecimal presentAmount;//拨付金额
    private Integer type;//1,后台拨付，2队长拨付

    public TianJieGroupRecord() {
    }

    public TianJieGroupRecord(Long groupId, Long memberId, String memberName, BigDecimal presentAmount, Integer type) {
        this.groupId = groupId;
        this.memberId = memberId;
        this.memberName = memberName;
        this.presentAmount = presentAmount;
        this.type = type;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public BigDecimal getPresentAmount() {
        return presentAmount;
    }

    public void setPresentAmount(BigDecimal presentAmount) {
        this.presentAmount = presentAmount;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public String  getTypeStr(){
        String typeStr= "";
        if(type==null)return typeStr;

        switch (type) {
            case 1:
                typeStr="系统拨付";
                break;
            case 2:
                typeStr="团队拨付";
                break;
            default:
                break;
        }
        return typeStr;
    }
}
